home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / ixemul-complete / ixemul / glue / makefile.in < prev   
Makefile  |  1996-05-08  |  2KB  |  83 lines

  1. # Glue comes in two flavors, one for flat address spaces and one for base
  2. # relative.  When gen_glue is compiled, which form of glue is generated
  3. # when it is run depends upon whether "__no_baserel" or "__baserel" was defined
  4. # when it was compiled.
  5.  
  6. #### Start of system configuration section. ####
  7.  
  8. srcdir =    @srcdir@
  9.  
  10. ifeq ($(srcdir),.)
  11. srcdir = ..
  12. endif
  13.  
  14. VPATH :=    $(srcdir)
  15.  
  16. # Common prefix for machine-independent installed files.
  17. prefix =    @prefix@
  18.  
  19. # Common prefix for machine-dependent installed files.
  20. exec_prefix =    @exec_prefix@
  21.  
  22. bindir =    $(exec_prefix)/bin
  23. libdir =    $(exec_prefix)/Sys/libs
  24.  
  25. INSTALL =    @INSTALL@
  26. INSTALL_DATA =    @INSTALL_DATA@
  27.  
  28. CC =        @CC@
  29. AS =        as
  30.  
  31. CFLAGS =    @CFLAGS@
  32. LDFLAGS =    @LDFLAGS@
  33.  
  34. RANLIB =    @RANLIB@
  35. AR =        ar
  36. RM =        rm -f
  37.  
  38. #### End system configuration section ####
  39.  
  40. # BASE is defined to be either "no-baserel" or "baserel" by an upper level
  41. # makefile.  The default is "no-baserel".
  42.  
  43. BASE =        no-baserel
  44.  
  45. FLAVOR_CFLAGS =
  46. OTHER_CFLAGS =    -fomit-frame-pointer
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libglue.a
  51. LIB_P =        libglue_p.a
  52. SHELL =        /bin/sh
  53.  
  54. .c.o:
  55.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  56.  
  57. ifeq ($(BASE),baserel)
  58. all:        $(LIB)
  59. else
  60. all:        $(LIB) $(LIB_P)
  61. endif
  62.  
  63. $(LIB):        gen_glue
  64.         rm -f *.o
  65.         ./gen_glue $(BASE)
  66.         $(AR) r $@ *.o
  67.         rm -f *.o
  68.  
  69. $(LIB_P):    gen_glue
  70.         rm -f *.o
  71.         ./gen_glue profiling
  72.         $(AR) r $@ *.o
  73.         rm -f *.o
  74.  
  75. gen_glue:    gen_glue.c $(srcdir)/../include/sys/syscall.def
  76.         $(CC) $(ALL_CFLAGS) $< -o $@
  77.  
  78. clean:
  79.         rm -rf *baserel
  80.  
  81. clobber:    clean
  82.         rm -f Makefile
  83.